package com.iotek.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.iotek.entity.User;
import com.iotek.service.UserService;


@Controller
@RequestMapping("/test")
public class TestController {

	@Autowired
	private UserService userServiceImpl;
	//bchghhdjkfdjvhdfjvjhdfvbjhdchjd
	@RequestMapping("/addUser.action")
	public String addUser(User user) {
		userServiceImpl.addUser(user);
		return "addUser";
	}
	
}
